package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.SensitiveDto;
import com.heima.model.wemedia.pojos.WmSensitive;

import java.util.List;

/**
 * @author 陈辉
 * @data 2023 15:49
 */
public interface WmSensitiveService extends IService<WmSensitive> {

    //获取系统敏感词
    List<WmSensitive> findAllSensitive();

    /**
     * 敏感词列表
     *
     * @param dto
     * @return
     */
    ResponseResult findList(SensitiveDto dto);

    /**
     * 添加敏感词
     *
     * @param wmSensitive
     * @return
     */
    ResponseResult add(WmSensitive wmSensitive);

    /**
     * 修改敏感词
     *
     * @param wmSensitive
     * @return
     */
    ResponseResult updateSensitive(WmSensitive wmSensitive);

    /**
     * 删除敏感词
     *
     * @param id
     * @return
     */
    ResponseResult delete(Integer id);

    boolean handleSensitiveScan(String content);
}
